package com.skyworth.web.admin.dishware.service;

import com.skyworth.web.admin.dishware.domain.DishwareModel;
import com.skyworth.web.admin.dishware.form.DishwareForm;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by lxs on 2016/9/20.
 */
public interface DishwareService {
	DishwareModel addDishware(DishwareForm dishwareForm);
	void delDishware(long id);
	DishwareModel updateDishware(DishwareForm dishwareForm);
	DishwareModel findDishware(long id);
	Page<DishwareModel> pageDishware(long store_id, Pageable pageable);

	boolean existDishwareByName(String name, long store_id);
	boolean existDishware(String name, long id, long store_id);
}
